//
//  BGSellerOrderController.m
//  bigMall
//
//  Created by ios on 16/9/6.
//  Copyright © 2016年 thinklev. All rights reserved.
//

#import "BGSellerOrderController.h"
#import "BGSellerOrderBasicController.h"

@interface BGSellerOrderController ()

@end

@implementation BGSellerOrderController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor whiteColor];
    UIBarButtonItem *back = [[UIBarButtonItem alloc] init];
    back.title = @"";
    self.navigationItem.backBarButtonItem = back;
    self.bounces = NO;
    self.otherGestureRecognizerSimultaneously = NO;
    //    self.pageAnimatable = NO;
    
    self.title = @"卖家订单";
    
}

- (NSArray <NSString *> *)titles {
    
    return @[@"全部",@"进行中",@"仲裁中",@"待评价",@"已完成"];
}

- (NSInteger)numbersOfChildControllersInPageController:(WMPageController *)pageController {
    
    self.bounces = NO;
    //    self.scrollView.bounces = NO;
    self.menuItemWidth = self.view.bounds.size.width / 5;
    self.menuViewStyle = WMMenuViewStyleLine;
    
    self.titleColorNormal = [UIColor blackColor];
    self.titleColorSelected = [UIColor orangeColor];
    self.titleSizeSelected = 21;
    self.menuView.width = BGWidth;
//    self.menuView.backgroundColor = [UIColor whiteColor];
    self.titleSizeNormal = 19;
    self.itemMargin = 0;
//    self.menuViewBottom = 0;
    self.showOnNavigationBar = NO;
    self.menuHeight = 45;
    self.progressColor = [UIColor orangeColor];
    //    self.scrollView.scrollEnabled = NO;
    
    return self.titles.count;
}

- (NSString *)pageController:(WMPageController *)pageController titleAtIndex:(NSInteger)index {
    
    return self.titles[index];
}

- (UIViewController *)initializeViewControllerAtIndex:(NSInteger)index {
    
    BGSellerOrderBasicController *a = [[BGSellerOrderBasicController alloc] init];
    switch (index) {
        case 0:
            a.type = @"all";
            break;
        case 1:
            a.type = @"process";
            break;
        case 2:
            a.type = @"arbitrate";
            break;
        case 3:
            a.type = @"waitComment";
            break;
        case 4:
            a.type = @"end";
            break;
            
        default:
            break;
    }
    return a;
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (void)viewWillAppear:(BOOL)animated {
    self.tabBarController.tabBar.hidden = YES;
    //    [UIApplication sharedApplication].statusBarHidden = YES;
}
@end
